<?php
/**
 * Created by PhpStorm.
 * User: DD
 * Date: 2016/4/19
 * Time: 0:07
 */

namespace app\admin\controller;


use app\admin\services\LoginLogService;
use app\common\controller\Base;

class LoginLog extends Base
{
    /**
     * @var LoginLogService
     */
    protected $_service;

    protected function _setService()
    {
        $this->_service = new LoginLogService();
    }

    public function clearLogs()
    {
        $this->_service->clearLogs();
        return $this->jsonSuccess();
    }
}